import axios from '../../network/axios'

// 条码规律(品牌公司
export const get_pin_pai_gongsi_data_api = (params) => {
  return axios({
    method: 'GET',
    url: '/branded-company-barcode/brandedCompanyBarcode',
    params
  })
}
// 获取所有尺码种类
export const getSizeType_data_api = () => {
  return axios({
    method: 'GET',
    url: '/size/getSizeType'
  })
}
// 条码规律新增
export const add_bar_code_rule_api = (data) => {
  return axios({
    method: 'POST',
    url: '/branded-company-barcode/brandedCompanyBarcode',
    data
  })
}
// 条码规律编辑
export const edit_bar_code_rule_api = (data) => {
  return axios({
    method: 'PUT',
    url: '/branded-company-barcode/updateBrandedCompanyBarcode',
    data
  })
}
// 条码规律编辑
export const delete_bar_code_rule_api = (params) => {
  return axios({
    method: 'DELETE',
    url: '/branded-company-barcode/brandedCompanyBarcode',
    params
  })
}
// 查询尺码数据
export function getSize(params = { limit: 9999 }) {
  return axios({
    url: '/size/list',
    params
  })
}
